<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_JS数据类型</title>
</head>
<body>
<script>
    var a = 1;
    var b = 3.6;
    console.log(a,typeof a,b,typeof b);
    var c = "hello";
    var d = '你好呀';
    console.log(c,typeof c,d,typeof d);
    var e = true;
    var f = false;
    console.log(e,typeof e,f,typeof f);
    var g;
    console.log(g,typeof g);

    let obj = {};
    console.log(obj,typeof obj);
    let obj2 = {
        name:"张三",
        age:18
    };
    console.log(obj2,typeof obj2);
    console.log(obj2.name,obj2.age);
    obj2.like = "抽烟";
    console.log(obj2,obj2.like);
    console.log(obj2.play);
</script>
</body>
</html>